FROM ubuntu:16.04

RUN apt-get update
RUN apt-get install -y git build-essential sudo

RUN mkdir -p /workdir/qsym

WORKDIR /workdir/qsym
COPY . /workdir/qsym

RUN sed -i 's/http:\/\/archive\.ubuntu\.com\/ubuntu\//http:\/\/mirrors\.aliyun\.com\/ubuntu\//g' /etc/apt/sources.list
RUN ./setup.sh
RUN apt-get install -y llvm clang llvm:i386
RUN pip install --upgrade pip
RUN pip install .
